/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

import org.w3c.dom.Element;

/**
 *
 * @author TrongKhoa
 */
public class ForeignKeyDTO{
    
    private String _constraintName;
    private Element _foreignKeyEle;
    private DataTableDTO _childTable;
    private DataColumnDTO _childColumn;
    
    //Cột tham chiếu đến phải là unique
    private DataColumnDTO _parentColumn;
    private DataTableDTO _parentTable;

    public ForeignKeyDTO(String _constraintName, DataTableDTO _childTable, DataColumnDTO _childColumn, DataColumnDTO _parentColumn, DataTableDTO _parentTable)
    {
        this._constraintName = _constraintName;
        this._childTable = _childTable;
        this._childColumn = _childColumn;
        this._parentColumn = _parentColumn;
        this._parentTable = _parentTable;
    }

    ForeignKeyDTO(DataTableDTO table, Element ForeignKeyEle)
    {
        _childTable = table;
        _foreignKeyEle = ForeignKeyEle;
        
        
    }
}
